import request from '@/utils/request'

// 查询字典列表
export function listDick(query) {
  return request({
    url: '/dick/dick/list',
    method: 'get',
    params: query
  })
}

// 查询字典详细
export function getDick(keyCode) {
  return request({
    url: '/dick/dick/' + keyCode,
    method: 'get'
  })
}

// 新增字典
export function addDick(data) {
  return request({
    url: '/dick/dick',
    method: 'post',
    data: data
  })
}

// 修改字典
export function updateDick(data) {
  return request({
    url: '/dick/dick',
    method: 'put',
    data: data
  })
}

// 删除字典
export function delDick(keyCode) {
  return request({
    url: '/dick/dick/' + keyCode,
    method: 'delete'
  })
}
